<?php
/* @var $this CourseController */
/* @var $model Course */

$this->main_menu = MenuHelper::getArrayForMainMenu(false, true, false);
//$this->breadcrumbs = array('links'=>array('Library'=>'#', 'Data'),);

?>



<?php
$this->widget('bootstrap.widgets.TbTabs', array(
	'type'=>'tabs', // 'tabs' or 'pills'
	'tabs'=>array(
        array('label'=>'Übersicht', 'url'=>$this->createUrl('course/admin'), 'active'=>true),
        array('label'=>'NEU', 'url'=>$this->createUrl('course/create'), 'active'=>false),
        array('label'=>'NEU aus Vorlage', 'url'=>$this->createUrl('course/chooseTemplate'), 'active'=>false),
//            array('label'=>'|', 'itemOptions'=>array('class'=>'disabled'), 'url'=>$this->createUrl('course/admin')),
        array('label'=>'Stammdaten', 'itemOptions'=>array('class'=>'disabled'), 'url'=>$this->createUrl('course/admin')),
        array('label'=>'Kombi', 'itemOptions'=>array('class'=>'disabled'), 'url'=>$this->createUrl('course/admin')),
        array('label'=>'Trainer', 'itemOptions'=>array('class'=>'disabled'), 'url'=>$this->createUrl('course/admin')),
        array('label'=>'Teilnehmer', 'itemOptions'=>array('class'=>'disabled'), 'url'=>$this->createUrl('course/admin')),
//            array('label'=>'|', 'itemOptions'=>array('class'=>'disabled'), 'url'=>$this->createUrl('course/admin')),
	),
));
?>

<?php
    $this->widget('bootstrap.widgets.TbExtendedGridView', array(
    'filter'=>$model,
    'fixedHeader' => false,
    'headerOffset' => 40, // 40px is the height of the main navigation at bootstrap
    'type'=>'striped bordered',
    'template' => '{items}{pager}', // 2nd way
    'dataProvider' => $model->search(),
//    'template' => "{items}",
	'columns'=>array(
/* 		'course_id', */
                'course_nr',
                'center',
/*
                'category1',
                'category2',
                'type',
                'title',
                'requirement',
                'content',
                'description',
*/
                'place',
                'start',
                'end',
/* 		'expiry', */
                'status',
/* 		'duration', */
/* 		'ue', */
/*
                'min_participants',
                'max_participants',
                'price',
                'class_time',
                'graduation',
                'statistics',
*/
//		'lead_trainer',
//		'trainer',
/* 		'master_course_id', */

            array (
                'class'=>'CButtonColumn',
                'template'=>'{update}{delete}',
	            'buttons'=>array(
	            	'update'=>array(
	            		'imageUrl'=>Yii::app()->request->baseUrl.'/images/update.png',
	            	),
	            	'delete'=>array(
	            		'imageUrl'=>Yii::app()->request->baseUrl.'/images/delete.png',
	            	),
	            ),
            ),
	),
    ));
?>
